#include "StdAfx.h"

#include "RadaWrapper.h"
#include "rada.h"

CRadaWrapper::CRadaWrapper(const IRadaParamInterface &param)
: m_param(param)
{
	m_pRada = auto_ptr<Everhardt>(new Everhardt(3, m_param.m_NCLASS, m_param.m_NOR, m_param.m_NI, m_param.m_LL, (float)m_param.m_XL));
}

bool CRadaWrapper::Move(double tStart, double tEnd, double *x, double *v, IForceInterface *pForce)
{
	_ASSERT(pForce);
	_ASSERT(m_pRada.get());
	
	m_pRada->rada27(x, v, tStart, tEnd, pForce);

	return true;
}

